package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 后台角色菜单表
 * </p>
 *
 * @author 作者
 * @since 2022-11-23
 */
@Getter
@Setter
@TableName("admin_role_menu")
@ApiModel(value = "AdminRoleMenu对象", description = "后台角色菜单表")
public class AdminRoleMenu extends Model<AdminRoleMenu> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "admin_role_menu_id", type = IdType.AUTO)
    private Integer adminRoleMenuId;

    @ApiModelProperty("系统角色ID")
    @TableField("admin_role_id")
    private Integer adminRoleId;

    @ApiModelProperty("系统菜单ID")
    @TableField("admin_menu_id")
    private Integer adminMenuId;

    @ApiModelProperty("删除状态：0正常，1删除")
    @TableField("delete_status")
    private Integer deleteStatus;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除 默认0不删除")
    @TableField("is_delete")
    private Integer isDelete;


    @Override
    public Serializable pkVal() {
        return this.adminRoleMenuId;
    }

}
